﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MP/NTD_NoSlide.Master" AutoEventWireup="true"
    CodeBehind="ListCongViec.aspx.cs" Inherits="TimViec.NTD.ListCongViec" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 class="m_bottom20">
        Các công việc của tôi</h1>
    <div class="bg_white p_10">
        <table cellspacing="10" cellpadding="0" width="100%">
            <tr>
                <td align="left">
                    <asp:DropDownList runat="server" ID="droNganhNghe" CssClass="select" 
                        Width="300px" />
                </td>
                <td align="right">Trạng thái:</td>
                <td align="right" style="text-align: right; width: 180px;">                    
                    <asp:DropDownList runat="server" ID="droTrangThai" CssClass="select" >
                        <asp:ListItem Value="-1">---Tất cả ---</asp:ListItem>
                        <asp:ListItem Value="0">Việc làm chờ đăng</asp:ListItem>
                        <asp:ListItem Value="1">Việc làm đã đăng</asp:ListItem>                        
                        <asp:ListItem Value="2">Việc làm tạm ngừng đăng</asp:ListItem>
                        <asp:ListItem Value="3">Việc làm hết hạn</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Button runat="server" ID="btSearch" Text="Tìm kiếm" CssClass="button2" 
                        onclick="btSearch_Click"/>
                </td>
            </tr>
        </table>
        <br/>
        <table cellspacing="0" cellpadding="0" class="tablesorter">
            <thead>
                <tr>
                    <th width="20px">STT</th>
                    <th>Chức danh</th>
                    <th>Công ty</th>
                    <th>Địa điểm</th>
                    <th width="60px">Số lần xem</th>
                    <th width="90px">Ngày đăng</th>
                    <th width="90px">Ngày hết hạn</th>
                    <th width="70px">Trạng thái</th>
                    <th style="width:40px;">
                        <asp:CheckBox runat="server" ID="checkall" onclick="checkAll_Repeater(this);"/>
                    </th>
                </tr>
            </thead>            
            <asp:Repeater runat="server" ID="rptlistCV" 
                onitemcommand="rptlistCV_ItemCommand">
                <ItemTemplate>
                    <tr>
                        <asp:HiddenField runat="server" ID="hiTuyenDungId" Value='<%#Eval("TuyenDungId") %>'/>
                        <td style="width:20px;"><%#Container.ItemIndex +1 %></td>
                        <td><%#Eval("ChucDanh") %></td>
                        <td><%#Eval("TenCongTy") %></td>
                        <td><%#Eval("DiaDiem") %></td>
                        <td><%#Eval("SoLuotXem") %></td>
                        <td><%#Eval("NgayDang","{0:dd/MM/yyyy}") %></td>
                        <td><%#Eval("NgayHetHan", "{0:dd/MM/yyyy}")%></td>
                        <td><%#Eval("TrangThai") %></td>
                        <td style="width:40px;">
                            <asp:LinkButton runat="server" ID="lbtEdit" CommandName="Edit" CommandArgument='<%#Eval("TuyenDungId") %>' ToolTip="Sửa"><img src="../images/backend/icn_edit.png"/></asp:LinkButton>
                            <asp:CheckBox runat="server" ID="checkList" onclick="CheckRepeater_Click(this)" />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <div class="fr clearfix" style="background: #ffffff; padding: 15px; width: 90%;">
            <ul class="paging">
                <li><asp:LinkButton runat="server" ID="lbtPreview" onclick="lbtPreview_Click">« Trước</asp:LinkButton></li>
                <asp:Literal ID="ltlPaging" runat="server" />
                <li><asp:LinkButton runat="server" ID="lbtNext" onclick="lbtNext_Click">Tiếp theo »</asp:LinkButton></li>
                <%--<li><a href="#"></a></li>
                <li><a class="current" href="#">1</a> </li>
                <li><a href="#">2</a> </li>
                <li><a href="#">3</a> </li>
                <li><a href="#">4</a> </li>
                <li><a href="#"></a></li>--%>
            </ul>
        </div>
        <br/>
        <asp:Button runat="server" ID="btDangViecLam" Text="Đăng tuyển dụng" 
            CssClass="button2" onclick="btDangViecLam_Click"/>
        <asp:Button runat="server" ID="btActive" Text="Bỏ kích hoạt" 
            CssClass="button2" onclick="btActive_Click"/>
        <asp:Button runat="server" ID="btDelete" Text="Xóa" CssClass="button2" 
            onclick="btDelete_Click"/>
    </div>
</asp:Content>
